'use strict';

const { Service } = require('ee-core');
const Storage = require('ee-core/storage');
const _ = require('lodash');
const path = require('path');

/**
 * json数据存储
 * @class
 */
class AppJsondbService extends Service {

  constructor (ctx) {
    super(ctx);

    // jsondb数据库
    this.jsonFile = 'app';
    this.appdb = Storage.connection(this.jsonFile);
  }

  odb(){
    return this.appdb;
  }
}

AppJsondbService.toString = () => '[class AppJsondbService]';
module.exports = AppJsondbService;
